package com.tianhao.luo.mysql;

import com.tianhao.luo.function.ICommand;
import com.tianhao.luo.function.IConnection;
import com.tianhao.luo.function.IDatabaseUtils;

/**
 * @author tianhao.luo
 * @date 2019/12/11 9:40
 */
public class MysqlDatabaseUtils implements IDatabaseUtils {
    /**
     * 获取数据库连接
     *
     * @return 数据库连接接口实例
     */
    @Override
    public IConnection getConnection() {
        return new MysqlConnection();
    }

    /**
     * 获取数据库发送命令实例对象
     *
     * @return 能发送命令的实例
     */
    @Override
    public ICommand getCommand() {
        return new MysqlCommand();
    }
}
